package com.ruicar.afs.cloud.afscase.credittemplate.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ruicar.afs.cloud.common.core.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author jiaqi.guo
 * @version 1.0
 * @created 2020/5/19 11:44
 */
@Data
@ApiModel(value = "信贷模版配置表")
@TableName("conf_approve_credit_template")
public class CreditTemplate extends BaseEntity<CreditTemplate> {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "模版名称")
    @NotBlank(message = "模版名称不能为空")
    private String templateName;

    @ApiModelProperty(value = "模版内容")
    @NotBlank(message = "模版内容不能为空")
    private String templateContent;

    @ApiModelProperty(value = "所有者ID")
    @NotBlank(message = "所有者ID不能为空")
    private String userId;

    @ApiModelProperty(value = "所有者")
    @NotBlank(message = "所有者不能为空")
    private String userName;

}
